package com.java.star.novel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 零限Lx
 * @since 2023-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("novel_order")
@ApiModel(value="Order对象", description="订单表")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    private Long orderNo;

    @ApiModelProperty(value = "订单总金额")
    private Integer totalAmount;

    @ApiModelProperty(value = "订单标题")
    private String orderSubject;

    @ApiModelProperty(value = "订单支付状态：0-待支付 1-支付成功")
    private Integer orderStatus;

    @ApiModelProperty(value = "交易号")
    private String tradeNo;

    @ApiModelProperty(value = "订单支付类型：0-支付宝 1-微信")
    private Integer type;

    @ApiModelProperty(value = "支付宝支付用户id")
    private String alipayBuyerId;

    @ApiModelProperty(value = "订单生成时间")
    private Date createTime;

    @ApiModelProperty(value = "付款时间")
    private Date gmtPayment;

    @ApiModelProperty(value = "用户id")
    private Long userId;


}
